@extends('layouts.admin')

@section('content')

<style type="text/css">
.delegate{margin:10px;}
</style>
<div class="page-content">
	<div class="page-header">
		<h1>更新个人信息</h1>
	</div>
	<div class="row">
		<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
			<form id="setting-form" name="twowayform" class="form-horizontal" method="POST" action="/admin/setting/password">
				{{ csrf_field() }}

				<div class="space-4"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label no-padding-right"> 密码 </label>
					<div class="col-sm-9">
						<input type="password" class="col-xs-10 col-sm-5" name="password" />
					</div>
				</div>

				<div class="space-4"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label no-padding-right"> 确认密码 </label>
					<div class="col-sm-9">
						<input type="password" name="password_confirmation" class="col-xs-10 col-sm-5"/>
					</div>
				</div>


				@if (count($errors) > 0)
			    <div class="alert alert-danger">
			        <ul>
			            @foreach ($errors->all() as $error)
			                <li>{{ $error }}</li>
			            @endforeach
			        </ul>
			    </div>
				@endif

				@if ($edit == true)
				 <div class="alert alert-danger">
				 	修改成功
			    </div>
			    @endif
				<div class="clearfix form-actions">
					<div class="col-md-offset-3 col-md-9">
						<button class="btn btn-info" type="button" onclick="event.preventDefault(); document.getElementById('setting-form').submit();">
							<i class="icon-ok bigger-110"></i>
							Submit
						</button>
					</div>
				</div>
			</form>
		</div>
	</div>

</div>

<script type="text/javascript">
</script>

@endsection
